package com.tyut.controller;

import com.tyut.service.StudentService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;


@Controller("studentController")
public class StudentController {

    @Resource(name = "studentService")
    private StudentService studentService;

    public void save(){
        this.studentService.save();
        System.out.println("StudentController...save...");
    }

    public void add(int id){
        this.studentService.add(id);
        //System.out.println("StudentController...save...");
    }

    public void delete(int id){
        this.studentService.delete(id);
        //System.out.println("StudentController...save...");
    }
}
